/**
 * 
 */
package com.baiyi.platform.client.oauth2.service.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Service;
import org.springframework.util.AntPathMatcher;

import com.baiyi.platform.client.oauth2.service.RbacService;
 
/** 
 * 
 * @ClassName: RbacServiceImpl
 * @Description: *   @param request        HttpServletRequest
 * @param authentication 认证信息
 * @return 是否有权限
 * @author huwenfeng
 * @date 2019年1月7日
 */
@Service("rbacService")
public class RbacServiceImpl implements RbacService {

	private AntPathMatcher antPathMatcher = new AntPathMatcher();

	@Override
	public boolean hasPermission(HttpServletRequest request, Authentication authentication) {
		Object principal = authentication.getPrincipal();

		boolean hasPermission = true;

		
		
		return hasPermission;
	}

}
